const information = document.getElementById("info");
information.innerText = `本应用正在使用 Chrome (v${versions.chrome()}), Node.js (v${versions.node()}), 和 Electron (v${versions.electron()})`;
console.log("versions: ", versions);

const setButton = document.getElementById("send");
// setButton.addEventListener("click", () => {
//   window.updateApp.send("demo title");
// });

window.system.onUpdateData((value) => {
  console.log("value: ", value);
  const totalEle = document.getElementById("total");
  const freeEle = document.getElementById("free");
  totalEle.innerText = value.totalMem;
  freeEle.innerText = value.freeMem;
});
